require(['tool'], function(tool){
  function getData () {
    console.log('我是index.js的getData方法，我需要调用doSomething')
    tool.doSomething()
  }
  getData()
});